package com.x.erp.model;

import java.util.Date;

import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;

@MappingTable(tableName = "CMS_ROTATION")
public class Rotation extends BaseObject {

    private static final long serialVersionUID = -8496218177506510845L;

    @MappingColumn(columnName = "ROTATION_ID", columnPk = true, columnLength = 32)
    private String rotationId;//主键id

    @MappingColumn(columnName = "ROTATION_NAME")
    private String rotationName;//轮播图名称

    @MappingColumn(columnName = "ROTATION_IMAGE")
    private String rotationImage;//图片地址

    @MappingColumn(columnName = "ROTATION_URL")
    private String rotationUrl;//图片链接

    @MappingColumn(columnName = "ROTATION_SEQ")
    private Integer rotationSeq;//图片排序

    @MappingColumn(columnName = "ROTATION_SHOW_SECONDS")
    private Integer rotationShowSeconds;//图片显示时间

    @MappingColumn(columnName = "ROTATION_STATE")
    private Integer rotationState;//图片状态

    @MappingColumn(columnName = "ROTATION_CREATE_TIME")
    private Date rotationCreateTime;//图片创建时间

    @MappingColumn(columnName = "ROTATION_UPDATE_TIME")
    private Date rotationUpdateTime;//图片更新时间

    @MappingColumn(columnName = "MARKET_ID")
    private String marketId;//市场ID

    @MappingColumn(columnName = "USER_ID")
    private String userId;//用户ID

    @MappingTable(tableName = "ERP_MARKET")
    private Market market;//关联ERP_MARKET表

    public Market getMarket() {
        return market;
    }

    public void setMarket(Market market) {
        this.market = market;
    }

    public String getRotationId() {
        return rotationId;
    }

    public void setRotationId(String rotationId) {
        this.rotationId = rotationId;
    }

    public String getRotationName() {
        return rotationName;
    }

    public void setRotationName(String rotationName) {
        this.rotationName = rotationName;
    }

    public String getRotationImage() {
        return rotationImage;
    }

    public void setRotationImage(String rotationImage) {
        this.rotationImage = rotationImage;
    }

    public String getRotationUrl() {
        return rotationUrl;
    }

    public void setRotationUrl(String rotationUrl) {
        this.rotationUrl = rotationUrl;
    }

    public Integer getRotationSeq() {
        return rotationSeq;
    }

    public void setRotationSeq(Integer rotationSeq) {
        this.rotationSeq = rotationSeq;
    }

    public Integer getRotationShowSeconds() {
        return rotationShowSeconds;
    }

    public void setRotationShowSeconds(Integer rotationShowSeconds) {
        this.rotationShowSeconds = rotationShowSeconds;
    }

    public Integer getRotationState() {
        return rotationState;
    }

    public void setRotationState(Integer rotationState) {
        this.rotationState = rotationState;
    }

    public Date getRotationCreateTime() {
        return rotationCreateTime;
    }

    public void setRotationCreateTime(Date rotationCreateTime) {
        this.rotationCreateTime = rotationCreateTime;
    }

    public Date getRotationUpdateTime() {
        return rotationUpdateTime;
    }

    public void setRotationUpdateTime(Date rotationUpdateTime) {
        this.rotationUpdateTime = rotationUpdateTime;
    }

    public String getMarketId() {
        return marketId;
    }

    public void setMarketId(String marketId) {
        this.marketId = marketId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

}
